import styled,{createGlobalStyle}from'styled-components'  // npm i styled-components
import style from './assets/global-style'
// es6 module  一个文件里可以有多个输出
export const GlobalStyle=createGlobalStyle`
        html, body, div, span, applet, object, iframe,
        h1, h2, h3, h4, h5, h6, p, blockquote, pre,
        a, abbr, acronym, address, big, cite, code,
        del, dfn, em, img, ins, kbd, q, s, samp,
        small, strike, strong, sub, sup, tt, var,
        b, u, i, center,
        dl, dt, dd, ol, ul, li,
        fieldset, form, label, legend,
        table, caption, tbody, tfoot, thead, tr, th, td,
        article, aside, canvas, details, embed, 
        figure, figcaption, footer, header, hgroup, 
        menu, nav, output, ruby, section, summary,
        time, mark, audio, video {
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 100%;
        font: inherit;
        vertical-align: baseline;
        }
        /* HTML5 display-role reset for older browsers */
        article, aside, details, figcaption, figure, 
        footer, header, hgroup, menu, nav, section {
        display: block;
        }
        body {
        line-height: 1;
        }
        html, body {
        background: #f2f3f4;;
        }
        ol, ul {
        list-style: none;
        }
        blockquote, q {
        quotes: none;
        }
        blockquote:before, blockquote:after,
        q:before, q:after {
        content: '';
        content: none;
        }
        table {
        border-collapse: collapse;
        border-spacing: 0;
        }
        a {
        text-decoration: none;
        color: #fff;
        }
`
export const Tab=styled.div`
width: 500px;
height: 250px;
/* background-color: red; */
margin:0 auto;
border-bottom: 1px solid red;
/* padding: 10px 5px; */
 .a1{
   display: flex;
   box-sizing: border-box;
   width: 100%;
   height: 50px;
   padding:10px 5px;
   /* background-color: green; */
}

.a1 span{
    font-size: 15px;
    font-weight: 400;
    line-height: 30px;
    padding: 0 5px;
    border-right: 1px solid white;
}
div p{
flex: 1;
line-height: 30px;
padding: 0 5px;
}
.a1 img{
    width: 30px;
    line-height: 30px;
}
.a2{
display: flex;
width: 100%;
height: 120px;
box-sizing: border-box;
padding: 10px 5px;
margin: 10px 0;
}
.a2 img{
    width: 150px;
    height: 100px;
    float: right;
}
.a3{
    display: flex;
    width: 100%;
    height: 30px;
}
.a3 div{
    line-height: 30px;
    margin: 10px 20px;
   float: left;
}
.a3 div span{
    width: 30px;
    /* margin: 10px 2px; */
}
.a3 p{
    width: 50px;
}
.a3 span img{
    width: 20px;
}
.a3>span{
    width: 30px;
    font-size: 10px;
    border-radius: 2px;
    background-color: yellow;
    margin: 10px 0 0 250px;
}
a.selected span{
padding:3px 0;
font-weight:700;
color:#f1f1f1;
border-bottom:2px solid #f1f1f1;
}
`
export const TabItem=styled.div`
height: 100%;
display: flex;
justify-content: center;
align-items: center;
`
//const obj={a:1}
//export default {obj}  //默认输出 只能有一个

